#include "server.hpp"

int main()
{
    Socket client_socket;
    client_socket.CreateClient(8888, "120.53.232.162"); // 120.53.232.162   127.0.0.1

    for(int i = 0;i < 5;i++)
    {
        std::string str = "nihaohaha!!!!!你好";
        int n = client_socket.Send(str.c_str(), str.size());

        char buffer[32] = {0};
        n = client_socket.Recv(buffer, 31);

        std::cout << buffer << std::endl;
        sleep(1);
    }
    while(1)
    {
        sleep(1);
    }
    return 0;
}